import { request } from '../../request/index'
Page({

    data: {
        activeNames: ['1'],
        notice: []
    },
    onShareAppMessage:function(options){},
    // 页面显示时触发
    onShow: function () {
        request({url: "/notice", method: 'GET'}).then(res => {
          this.setData({
            notice: res.data
          })
        })
    },

    
    onChange(event) {
        console.log(event);
        this.setData({
            activeNames: event.detail,
        });
    },
})